/**index.wxss**/
page {
  display: flex;
  flex-direction: column;
  padding: 16rpx;
  box-sizing: border-box;
  height: 100vh;
  background-color: #efefef;

  >view {
    &:nth-child(n + 2) {
      margin-top: 16rpx;
    }
  }
}

//轮播图样式
.swiper {
  swiper {
    height: 360rpx;

    swiper-item {
      image {
        width: 100%;
        height: 100%;
      }
    }
  }
}

//公司信息
.company-info {
  display: flex;
  justify-content: space-between;
  padding: 16rpx;
  border-radius: 10rpx;
}

//商品导航
.goods-nav {
  display: flex;
  justify-content: space-between;
  padding: 20rpx;

  view {
    navigator {
      display: flex;
      flex-direction: column;
    }

    image {
      width: 80rpx;
      height: 80rpx;
    }

    text {
      font-size: 24rpx;
      margin-top: 12rpx;
    }
  }
}

//推荐商品
.goods-hot {
  padding: 16rpx;
  font-size: 24rpx;

  .scroll-x {
    width: 100%;
    white-space: nowrap;

    view {
      display: inline-block;
      margin-right: 16rpx;
      width: 320rpx;
      height: 420rpx;

      .goods-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        text {
          &:nth-of-type(1) {
            font-weight: bolder;
          }
        }

        image {
          border-radius: 10rpx;
          width: 100%;
          height: 320rpx;
        }
      }
    }

    &:last-child {
      margin-right: 0;
    }
  }


}